//
//  LCMusicPlayerdefine.h
//  LCAudioPlay
//
//  Created by admin on 2017/9/24.
//  Copyright © 2017年 LC. All rights reserved.
//

#define _LCPlayer ([LCMusicPlayer sharedInstance])

/**
 定义单例模式类    INTERFACE_SINGLETON(类名)
 实现单例模式类    IMPLEMENTATION_SINGLETON(类名)
 */
#undef    INTERFACE_SINGLETON
#define INTERFACE_SINGLETON( __class ) \
- (__class *)sharedInstance; \
+ (__class *)sharedInstance;

#undef    IMPLEMENTATION_SINGLETON
#define IMPLEMENTATION_SINGLETON( __class ) \
- (__class *)sharedInstance \
{ \
return [__class sharedInstance]; \
} \
+ (__class *)sharedInstance \
{ \
static dispatch_once_t once; \
static __class * __singleton__; \
dispatch_once( &once, ^{ __singleton__ = [[[self class] alloc] init]; } ); \
return __singleton__; \
}

// 歌曲播放状态发生变化通知
#define kMusicPlayerStatus                          @"kMusicPlayerStatus"
#define LCMusicPlayerStatusDidChangedNotification   @"LCMusicPlayerStatusDidChangedNotification"

// 正在播放的歌曲发生变化通知
#define kMusicPlayerPlayingSong                         @"kMusicPlayerPlayingSong"
#define LCMusicPlayerPlayingSongDidChangedNotification  @"LCMusicPlayerPlayingSongDidChangedNotification"

// 当前播放歌曲的进度发生变化时回调
#define kCurrentTime                                    @"kCurrentTime"
#define kTotalTime                                      @"kTotalTime"
#define LCMusicPlayerCurrentTimeDidChangedNotification  @"LCMusicPlayerCurrentTimeDidChangedNotification"

//当前缓冲进度发生变化时回调
#define kBufferProgress                                 @"kBufferProgress"
#define LCBufferProgressDidChangedNotification          @"LCBufferProgressDidChangedNotification"


